﻿@using Db8.Data
@model Claim
<div class="claim-box">
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        @Html.Hidden("counterTarget", ViewData["counterTarget"])

        <div class="editor-label">
            Claim
        </div>
        <div class="editor-field tweet-length">
            @Html.ValidationMessageFor(model => model.Statement)
            @Html.EditorFor(model => model.Statement)
        </div>

        <div class="editor-label">
            Details (Optional)
        </div>
        <div class="editor-field abstract-length">
            @Html.ValidationMessageFor(model => model.Abstract)
            @Html.EditorFor(model => model.Abstract)
        </div>

        <div class="editor-label">
            Tags
        </div>
        <div class="editor-field">
            @Html.TextBox("Keywords", ViewData["Keywords"])
        </div>
    }

    <br />
    @if (ViewBag.Subform)
    {
    <span class="edit-button" title="Save" post-action="@Url.Action("Create", "Claim")" load-container="existing" load-deletes-this="delete">
        <img src="@Url.Content("~/images/save.png")" />
    </span>
    <span class="edit-button" title="Cancel Changes" load-action="@Url.Action("ClaimNew", "Claim")" load-container="none">
        <img src="@Url.Content("~/images/left.png")" />
    </span>
    }
    else
    {
    <span class="edit-button" id="Save" title="Save">
        <a href="#"><img src="@Url.Content("~/images/save.png")" /></a>
    </span>
    <span class="edit-button" id="Cancel" title="Cancel">
        <a href="@Url.Action("Index", "Claim")"><img src="@Url.Content("~/images/left.png")" /></a>
    </span>
    }
</div>
<br />